package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

/**
 * @Author itheima
 * @Date 2022/5/3 9:17
 */
public interface UserService {
    /**
     * 根据主键查询用户
     *
     * @param id
     * @return
     */
    public User queryUser(Long id);

    /**
     * 分页
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageInfo<User> queryPage(Integer pageNum, Integer pageSize);
}
